#include <stdio.h>
int sum(int n);

int main()
{
    int n;
    scanf("%d", &n);
    printf("%d", sum(n));
}

int sum(int n)
{
    if (n == 0)
        return 0;
    return n + sum(n - 1);
}
